
/*---------------------------------------------------------------------------

  FILENAME:
        serial.c

  PURPOSE:
	Provide serial operation.

  REVISION HISTORY:
        Date            Engineer        Revision        Remarks
	16/02/2009	Vincent. Young	1.2	

  NOTES:


  LICENSE:
        Copyright (c) 2009, Vincent Young (vincentgodyoung@hotmail.com)

        This source code is released for free distribution under the terms
        of the GNU General Public License.

----------------------------------------------------------------------------*/

#define PORT1 0
#define PORT2 1
#define PORT3 2
#define PORT4 3

#define LOGREGMODE FALSE
#define MOXAMODE FALSE
#define VP2 FALSE

int SerialOpen(char* portname, int speed);
int SerialWrite(char *buf, int len);
int SerialNonBlockRead(char *buf, int size);

extern int socketid;
extern int serial;
extern int speed_arr[13];
extern int name_arr[13];
